package com.cn.kehong.domain;

import com.cn.kehong.utils.CommonUtil;

import java.util.Date;
import java.util.List;

public class ThroughRate {
    private String id;

    private String factoryName;

    private String gradeValue;

    private String averagePercent;

    private String createUserId;

    private String createUserName;

    private String throughTime;

    private String throughStatus;

    private String status;

    private String remark;

    private Date createTime;

    private Date updateTime;

    private int count;

    private List<ThroughRateDetail> throughRateDetails;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue == null ? null : gradeValue.trim();
    }

    public String getAveragePercent() {
        return averagePercent;
    }

    public void setAveragePercent(String averagePercent) {
        this.averagePercent = averagePercent == null ? null : averagePercent.trim();
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId == null ? null : createUserId.trim();
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public String getThroughTime() {
        return throughTime;
    }

    public void setThroughTime(String throughTime) {
        this.throughTime = throughTime == null ? null : throughTime.trim();
    }

    public String getThroughStatus() {
        return throughStatus;
    }

    public void setThroughStatus(String throughStatus) {
        this.throughStatus = throughStatus == null ? null : throughStatus.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<ThroughRateDetail> getThroughRateDetails() {
        return throughRateDetails;
    }

    public void setThroughRateDetails(List<ThroughRateDetail> throughRateDetails) {
        this.throughRateDetails = throughRateDetails;
    }

    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }
}